<html>

<head>
  <meta charset="utf-8">
  <title>bTask Tests</title>
  <link rel="stylesheet" href="/node_modules/mocha/mocha.css" />
  <style>
  .toast-message,
  #main {
    display: none
  }
  </style>
</head>

<body>
  <div id="container"></div>
  <div id="mocha"></div>
  <script src="http://localhost/assets/lib/jquery/1.8.3/jquery-1.8.3.min.js"></script>
  <script src="/node_modules/chai/chai.js"></script>
  <script src="/node_modules/mocha/mocha.js"></script>
  <script src="/js/lib/require.js"></script>
  <script src="setup.js"></script>
  <script src="app.test.js"></script>
  <script>
  require.config({
    baseUrl: '../app/js',
    shim: {
      backbone: {
        deps: ['underscore', 'jquery']
      }
    },
    paths: {
      moment: 'lib/moment.min',
      wx: 'lib/jweixin-1.0.0',
      jquery: 'lib/jquery-1.8.3.min',
      backbone: 'lib/backbone-min',
      underscore: 'lib/underscore-min',
      vue: 'lib/vue/vue.min',
      // Require.js plugins
      text: 'lib/require/text',
      // Just a short cut so we can put our html outside the js dir
      // When you have HTML/CSS designers this aids in keeping them out of the js directory
      tmpl: '../tmpl',
      util: 'ext/util',
      service: 'ext/service',
      vm: 'ext/vm',
      event: 'ext/event'
    }
  });
  require(['event'], function(eve) {
    eve.on('ready', function() {
      mocha.run();
    });
    require(['main'])
  });
  </script>
</body>

</html>
